package com.xiangyi.teachingsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiangyi.teachingsystem.dao.MessageMapper;
import com.xiangyi.teachingsystem.entity.dto.MessageDto;
import com.xiangyi.teachingsystem.entity.po.Message;
import com.xiangyi.teachingsystem.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {
    @Autowired
    MessageMapper messageMapper ;
    @Override
    public List<Message> list(Integer groupId) {
        return messageMapper.list(groupId);
    }

    @Override
    public List<MessageDto> infoList(Integer groupId) {
        return messageMapper.infoList(groupId);
    }
}
